Skip to content

Update dependency com.squareup:kotlinpoet to v2#1010

Merged
nielsvanvelzen merged 3 commits intomasterfrom
renovate/major-kotlinpoet
Mar 25, 2025
Merged

Update dependency com.squareup:kotlinpoet to v2#1010
nielsvanvelzen merged 3 commits intomasterfrom
renovate/major-kotlinpoet

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented Oct 23, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
com.squareup:kotlinpoet 1.18.1 -> 2.1.0 age adoption passing confidence

Release Notes

square/kotlinpoet (com.squareup:kotlinpoet)

v2.1.0

Compare Source

Thanks to @​ForteScarlet, @​TrevorSStone, @​RaoPrashanth, @​damianw, @​ansehoon1999, @​TheMrMilchmann for contributing to this release.

  • New: Kotlin 2.1.10.
  • New: KSP 2.1.10-1.0.30.
  • Fix: Support delegates on anonymous classes. (#​2034)
  • Fix: Prevent aliased imports from colliding with existing imports. (#​2052)
  • Fix: TypeName.MUTABLE_MAP_ENTRY now correctly uses the MutableEntry nested class name. (#​2061)
  • Fix: Use the same aliased import for both the nullable and non-nullable versions of a type. (#​2068)
  • Fix: Allow zero methods in a functional interface if it has a superinterface. (#​2075)

v2.0.0

Compare Source

Thanks to @​brokenhappy, @​tajobe, @​niyajali, @​ForteScarlet for contributing to this release.

This release is source- and binary-compatible with KotlinPoet 1.x.

The most important behavior change in this release is that spaces in generated code don't wrap by default anymore.

KotlinPoet 1.x used to replace space characters with newline characters whenever a given line of code exceeded the length limit. This usually led to better code formatting, but could also lead to compilation errors in generated code. Non-breaking spaces could be marked by the · character, but the discoverability of this feature wasn't great.

KotlinPoet 2.0 does not wrap spaces, even if the line of code they occur in exceeds the length limit. The newly introduced character can be used to mark spaces that are safe to wrap, which can improve code formatting. The · character has been preserved for compatibility, but its behavior is now equivalent to a regular space character.

  • New: Kotlin 2.0.10.
  • New: Spaces don't break by default.
  • New: New placeholder representing a space that is safe to wrap.
  • New: Add KSTypeAlias.toClassName(). (#​1956)
  • New: Add KSType.toClassNameOrNull(). (#​1956)
  • Fix: Enum classes that only have an init block now also generate the required semicolon. (#​1953)
  • Fix: Preserve typealiases in KSAnnotation.toAnnotationSpec(). (#​1956)
  • Fix: Preserve nullability in KSType.toClassName(). (#​1956)

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added the dependencies Change in dependencies was made label Oct 23, 2024
@renovate renovate Bot requested a review from nielsvanvelzen as a code owner October 23, 2024 10:02
@renovate renovate Bot added the gradle label Oct 23, 2024
@renovate renovate Bot force-pushed the renovate/major-kotlinpoet branch 3 times, most recently from 3149954 to d6f41c1 Compare December 31, 2024 16:51
@jellyfin-bot jellyfin-bot added the merge conflict Conflicts prevent merging label Jan 22, 2025
@renovate renovate Bot force-pushed the renovate/major-kotlinpoet branch from a24fb9e to a37920b Compare March 25, 2025 10:07
@jellyfin-bot jellyfin-bot removed the merge conflict Conflicts prevent merging label Mar 25, 2025
@renovate
Copy link
Copy Markdown
Contributor Author

renovate Bot commented Mar 25, 2025

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

@nielsvanvelzen nielsvanvelzen added this to the v1.7.0 milestone Mar 25, 2025
@nielsvanvelzen nielsvanvelzen enabled auto-merge (rebase) March 25, 2025 10:58
@nielsvanvelzen nielsvanvelzen merged commit 91b56dd into master Mar 25, 2025
11 of 12 checks passed
@nielsvanvelzen nielsvanvelzen deleted the renovate/major-kotlinpoet branch March 25, 2025 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Change in dependencies was made gradle

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants